
<?php 
$fieldName="naturedesoin";
$fieldName=strtoupper($fieldName);
$fieldNamelib="Nature de soin";

?>
<tr id="xrow_<?=$fieldName?>" class="ewTableAltRow ButterflyPortal-row-0" style="background-color: rgb(142, 176, 232); color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial;">
<td id="<?=$fieldName?>" class="ewTableHeader  ButterflyPortal-key-0"><?=$fieldNamelib?></td>
<td class="  ButterflyPortal-value-0"><span id="el_<?=$fieldName?>">
						<?php  makeSelect("ButterflyPortal_data_NATUREDESOIN","naturedesoinSelect","nom","id","cabinet_soinnature","portalId= $portalId","");
						addAjaxtoSelect("naturedesoinSelect","cabinet_acte","id","nom","natureSoinId","acteSelect","xrow_ACTE,row_MEDICAMENTID","xrow_ACTE");
						?>	
						</span></td>
</tr>








<?php 
$fieldName="acte";
$fieldName=strtoupper($fieldName);
$fieldNamelib="Type d'acte";

?>
<tr id="xrow_<?=$fieldName?>" class="ewTableAltRow ButterflyPortal-row-0" style="background-color: rgb(142, 176, 232); color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial;">
<td id="<?=$fieldName?>" class="ewTableHeader  ButterflyPortal-key-0"><?=$fieldNamelib?></td>
<td class="  ButterflyPortal-value-0"><span id="el_<?=$fieldName?>">
						<?php  makeSelect("ButterflyPortal_data_ACTE","acteSelect","nom","id","cabinet_acte","portalId= $portalId","");

						
						?>	
						
						
						</span></td>
</tr>

<script>

$( document ).ready(function() {
	$("#row_NATUREDESOIN").replaceWith($("#xrow_NATUREDESOIN"));	
	$("#row_ACTE").replaceWith($("#xrow_ACTE"));						
						

	});
						

</script>